home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / AppsToGo / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_394_a1E8 < prev    next >
Unknown  |  1994-09-22  |  5.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 28 00 00 00 00 00 00 | 00 28 61 31 45 38 00 00 |.(......|.(a1E8..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 0e 44 6f 57 69 6e | 64 6f 77 43 75 72 73 6f |...DoWin|dowCurso|
|00000060| 72 00 00 06 00 00 00 00 | 00 74 00 00 00 00 00 00 |r.......|.t......|
|00000070| 00 74 00 00 00 14 03 c1 | 00 28 05 7e 00 ff 00 00 |.t......|.(.~....|
|00000080| 00 00 00 00 0f a8 00 00 | 00 00 4e 1c 00 00 00 09 |........|..N.....|
|00000090| 00 00 00 04 00 04 ff fc | ff fa 00 04 00 04 ff fc |........|........|
|000000a0| ff fc 00 00 00 00 00 00 | 00 00 83 00 0b 40 10 6b |........|.....@.k|
|000000b0| 53 63 72 65 65 6e 41 50 | 49 2f 31 39 39 39 36 00 |ScreenAP|I/19996.|
|000000c0| 06 47 65 6e 65 76 61 00 | 00 1a 76 6f 69 64 20 44 |.Geneva.|..void D|
|000000d0| 6f 57 69 6e 64 6f 77 43 | 75 72 73 6f 72 28 76 6f |oWindowC|ursor(vo|
|000000e0| 69 64 29 3b 00 00 00 06 | 00 00 00 00 00 ab 00 00 |id);....|........|
|000000f0| 00 00 00 00 00 ab 00 00 | 00 00 03 c1 00 14 05 7e |........|.......~|
|00000100| 00 ff 00 00 00 00 00 00 | 0f a8 00 00 00 00 4e 1d |........|......N.|
|00000110| 00 00 00 09 00 00 00 04 | 00 04 ff fc ff fa 00 04 |........|........|
|00000120| 00 04 ff fc ff fc 00 00 | 00 00 00 00 00 00 83 00 |........|........|
|00000130| 0b 40 14 6b 53 63 72 65 | 65 6e 4f 6e 65 4c 69 6e |.@.kScre|enOneLin|
|00000140| 65 2f 31 39 39 39 37 00 | 06 47 65 6e 65 76 61 00 |e/19997.|.Geneva.|
|00000150| 00 4d 49 74 65 72 61 74 | 65 73 20 74 68 72 6f 75 |.MIterat|es throu|
|00000160| 67 68 20 74 68 65 20 77 | 69 6e 64 6f 77 73 2c 20 |gh the w|indows, |
|00000170| 67 69 76 69 6e 67 20 74 | 68 65 20 64 6f 63 75 6d |giving t|he docum|
|00000180| 65 6e 74 20 61 20 63 68 | 61 6e 63 65 20 74 6f 20 |ent a ch|ance to |
|00000190| 73 65 74 20 74 68 65 20 | 63 75 72 73 6f 72 2e 00 |set the |cursor..|
|000001a0| 00 00 06 00 00 00 00 00 | 44 00 00 00 00 00 00 00 |........|D.......|
|000001b0| 44 00 00 00 00 02 6b 04 | 40 02 6c 01 00 00 00 00 |D.....k.|@.l.....|
|000001c0| 00 00 01 0f f1 00 00 00 | 00 00 00 00 00 00 0c 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 06 00 | 00 00 00 00 7f 00 00 00 |........|........|
|00000200| 00 00 00 00 7f 00 00 00 | 00 02 6b 02 28 03 c1 00 |........|..k.(...|
|00000210| ff 00 00 00 00 00 00 0f | a8 00 00 00 00 4e 16 00 |........|.....N..|
|00000220| 00 00 09 00 00 00 04 00 | 04 ff fc ff fa 00 04 00 |........|........|
|00000230| 04 ff fc ff fc 00 00 00 | 00 00 00 00 00 83 00 0b |........|........|
|00000240| 40 0b 6c 69 6e 6b 73 2f | 31 39 39 39 30 00 06 4d |@.links/|19990..M|
|00000250| 6f 6e 61 63 6f 00 00 14 | 61 31 45 38 2c 44 6f 57 |onaco...|a1E8,DoW|
|00000260| 69 6e 64 6f 77 43 75 72 | 73 6f 72 0d 00 16 00 01 |indowCur|sor.....|
|00000270| 00 00 00 00 00 10 00 0c | 00 01 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 06 00 00 | 00 00 14 31 00 00 00 00 |........|...1....|
|00000290| 00 00 14 31 00 00 00 00 | 00 00 75 30 02 6b 01 ff |...1....|..u0.k..|
|000002a0| 00 00 00 00 00 00 0f a8 | 00 00 00 00 4e 1f 00 00 |........|....N...|
|000002b0| 00 09 00 00 00 04 00 04 | ff fc ff fa 00 04 00 04 |........|........|
|000002c0| ff fc ff fc 00 00 00 00 | 00 00 00 00 83 00 0b 40 |........|.......@|
|000002d0| 0a 62 6f 64 79 2f 31 39 | 39 39 39 00 06 4d 6f 6e |.body/19|999..Mon|
|000002e0| 61 63 6f 00 13 c7 76 6f | 69 64 20 44 6f 57 69 6e |aco...vo|id DoWin|
|000002f0| 64 6f 77 43 75 72 73 6f | 72 28 76 6f 69 64 29 3b |dowCurso|r(void);|
|00000300| 0d 0d 20 20 20 20 46 69 | 6c 65 3a 20 57 69 6e 64 |.. Fi|le: Wind|
|00000310| 6f 77 32 2e 68 0d 0d 43 | 61 6c 6c 20 74 68 69 73 |ow2.h..C|all this|
|00000320| 20 66 75 6e 63 74 69 6f | 6e 20 74 6f 20 63 61 6c | functio|n to cal|
|00000330| 63 75 6c 61 74 65 20 77 | 68 61 74 20 74 68 65 20 |culate w|hat the |
|00000340| 63 75 72 73 6f 72 20 73 | 68 6f 75 6c 64 20 62 65 |cursor s|hould be|
|00000350| 20 66 6f 72 20 76 61 72 | 69 6f 75 73 20 77 69 6e | for var|ious win|
|00000360| 64 6f 77 73 2e 0d 54 68 | 65 20 72 65 73 75 6c 74 |dows..Th|e result|
|00000370| 20 6f 66 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f | of this| functio|
|00000380| 6e 20 69 73 20 74 6f 20 | 73 65 74 20 74 68 65 20 |n is to |set the |
|00000390| 63 75 72 73 6f 72 20 62 | 61 73 65 64 20 6f 6e 20 |cursor b|ased on |
|000003a0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6d 6f 75 73 |the curr|ent mous|
|000003b0| 65 0d 70 6f 73 69 74 69 | 6f 6e 2e 20 20 49 6e 20 |e.positi|on. In |
|000003c0| 61 64 64 69 74 69 6f 6e | 20 74 6f 20 73 65 74 74 |addition| to sett|
|000003d0| 69 6e 67 20 74 68 65 20 | 63 75 72 73 6f 72 2c 20 |ing the |cursor, |
|000003e0| 74 68 65 20 63 75 72 73 | 6f 72 20 72 65 67 69 6f |the curs|or regio|
|000003f0| 6e 20 69 73 20 63 61 6c | 63 75 6c 61 74 65 64 2e |n is cal|culated.|
|00000400| 0d 54 68 65 20 63 75 72 | 73 6f 72 20 72 65 67 69 |.The cur|sor regi|
|00000410| 6f 6e 20 69 73 20 6b 65 | 70 74 20 69 6e 20 74 68 |on is ke|pt in th|
|00000420| 65 20 67 6c 6f 62 61 6c | 20 76 61 72 69 61 62 6c |e global| variabl|
|00000430| 65 20 67 43 75 72 73 6f | 72 52 67 6e 2e 0d 54 68 |e gCurso|rRgn..Th|
|00000440| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 77 61 6c 6b |is funct|ion walk|
|00000450| 73 20 74 68 65 20 77 69 | 6e 64 6f 77 20 6c 69 73 |s the wi|ndow lis|
|00000460| 74 2c 20 61 6e 64 20 66 | 6f 72 20 65 61 63 68 20 |t, and f|or each |
|00000470| 64 6f 63 75 6d 65 6e 74 | 20 77 69 6e 64 6f 77 2c |document| window,|
|00000480| 20 69 74 20 63 61 6c 6c | 73 20 74 68 65 0d 77 69 | it call|s the.wi|
|00000490| 6e 64 6f 77 d5 73 20 63 | 75 72 73 6f 72 20 68 61 |ndow.s c|ursor ha|
|000004a0| 6e 64 6c 69 6e 67 20 70 | 72 6f 63 65 64 75 72 65 |ndling p|rocedure|
|000004b0| 2e 20 20 54 68 65 20 63 | 75 72 73 6f 72 20 68 61 |. The c|ursor ha|
|000004c0| 6e 64 6c 69 6e 67 20 70 | 72 6f 63 65 64 75 72 65 |ndling p|rocedure|
|000004d0| 20 69 73 20 73 74 6f 72 | 65 64 20 69 6e 0d 74 68 | is stor|ed in.th|
|000004e0| 65 20 66 72 48 6e 64 6c | 20 66 69 65 6c 64 20 77 |e frHndl| field w|
|000004f0| 69 6e 64 6f 77 43 75 72 | 73 6f 72 50 72 6f 63 2e |indowCur|sorProc.|
|00000500| 0d 48 65 72 65 20 61 72 | 65 20 74 68 65 20 72 75 |.Here ar|e the ru|
|00000510| 6c 65 73 20 66 6f 72 20 | 63 75 72 73 6f 72 20 61 |les for |cursor a|
|00000520| 6e 64 20 67 43 75 72 73 | 6f 72 52 67 6e 20 64 65 |nd gCurs|orRgn de|
|00000530| 74 65 72 6d 69 6e 61 74 | 69 6f 6e 3a 0d 0d 31 29 |terminat|ion:..1)|
|00000540| 20 20 53 65 65 20 69 66 | 20 74 68 65 20 6d 6f 75 | See if| the mou|
|00000550| 73 65 20 70 6f 73 69 74 | 69 6f 6e 20 69 73 20 63 |se posit|ion is c|
|00000560| 75 72 72 65 6e 74 6c 79 | 20 69 6e 73 69 64 65 20 |urrently| inside |
|00000570| 74 68 65 20 67 43 75 72 | 73 6f 72 52 67 6e 2e 20 |the gCur|sorRgn. |
|00000580| 20 49 66 20 73 6f 2c 20 | 6c 65 61 76 65 2e 0d 32 | If so, |leave..2|
|00000590| 29 20 20 53 69 6e 63 65 | 20 74 68 65 20 6d 6f 75 |) Since| the mou|
|000005a0| 73 65 20 70 6f 73 69 74 | 69 6f 6e 20 69 73 20 6f |se posit|ion is o|
|000005b0| 75 74 73 69 64 65 20 74 | 68 65 20 63 75 72 72 65 |utside t|he curre|
|000005c0| 6e 74 20 67 43 75 72 73 | 6f 72 52 67 6e 2c 20 77 |nt gCurs|orRgn, w|
|000005d0| 65 20 6e 65 65 64 20 74 | 6f 0d 20 20 20 20 72 65 |e need t|o. re|
|000005e0| 63 61 6c 63 75 6c 61 74 | 65 20 74 68 65 20 63 75 |calculat|e the cu|
|000005f0| 72 73 6f 72 2e 20 20 53 | 65 74 20 74 68 65 20 67 |rsor. S|et the g|
|00000600| 43 75 72 73 6f 72 52 67 | 6e 20 74 6f 20 77 69 64 |CursorRg|n to wid|
|00000610| 65 2d 6f 70 65 6e 2e 20 | 20 46 72 6f 6d 20 6e 6f |e-open. | From no|
|00000620| 77 20 6f 6e 2c 20 77 65 | 0d 20 20 20 20 77 69 6c |w on, we|. wil|
|00000630| 6c 20 65 6c 69 6d 69 6e | 61 74 65 20 61 72 65 61 |l elimin|ate area|
|00000640| 73 20 66 72 6f 6d 20 67 | 43 75 72 73 6f 72 52 67 |s from g|CursorRg|
|00000650| 6e 20 74 68 61 74 20 64 | 6f 6e d5 74 20 61 70 70 |n that d|on.t app|
|00000660| 6c 79 20 74 6f 20 74 68 | 65 20 6e 65 77 20 6d 6f |ly to th|e new mo|
|00000670| 75 73 65 0d 20 20 20 20 | 6c 6f 63 61 74 69 6f 6e |use. |location|
|00000680| 20 61 6e 64 20 6e 65 77 | 20 63 75 72 73 6f 72 2e | and new| cursor.|
|00000690| 0d 33 29 20 20 46 6f 72 | 20 65 61 63 68 20 76 69 |.3) For| each vi|
|000006a0| 73 69 62 6c 65 20 77 69 | 6e 64 6f 77 20 28 73 74 |sible wi|ndow (st|
|000006b0| 61 72 74 69 6e 67 20 77 | 69 74 68 20 74 68 65 20 |arting w|ith the |
|000006c0| 66 72 6f 6e 74 20 77 69 | 6e 64 6f 77 29 3a 0d 20 |front wi|ndow):. |
|000006d0| 20 20 20 61 29 20 20 49 | 66 20 74 68 65 20 77 69 | a) I|f the wi|
|000006e0| 6e 64 6f 77 43 75 72 73 | 6f 72 50 72 6f 63 20 69 |ndowCurs|orProc i|
|000006f0| 73 20 6e 69 6c 20 61 6e | 64 20 74 68 65 20 6d 6f |s nil an|d the mo|
|00000700| 75 73 65 20 70 6f 73 69 | 74 69 6f 6e 20 69 73 20 |use posi|tion is |
|00000710| 6f 76 65 72 20 74 68 65 | 20 73 74 72 75 63 74 75 |over the| structu|
|00000720| 72 65 0d 20 20 20 20 20 | 20 20 20 72 65 67 69 6f |re. | regio|
|00000730| 6e 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 2c |n of the| window,|
|00000740| 20 73 65 74 20 74 68 65 | 20 63 75 72 73 6f 72 20 | set the| cursor |
|00000750| 74 6f 20 61 6e 20 61 72 | 72 6f 77 20 61 6e 64 20 |to an ar|row and |
|00000760| 69 6e 74 65 72 73 65 63 | 74 20 74 68 65 20 67 43 |intersec|t the gC|
|00000770| 75 72 73 6f 72 52 67 6e | 0d 20 20 20 20 20 20 20 |ursorRgn|. |
|00000780| 20 77 69 74 68 20 74 68 | 65 20 73 74 72 75 63 74 | with th|e struct|
|00000790| 75 72 65 20 72 65 67 69 | 6f 6e 20 6f 66 20 74 68 |ure regi|on of th|
|000007a0| 65 20 77 69 6e 64 6f 77 | 2e 20 20 54 68 69 73 20 |e window|. This |
|000007b0| 6c 69 6d 69 74 73 20 74 | 68 65 20 63 75 72 73 6f |limits t|he curso|
|000007c0| 72 20 74 6f 20 74 68 65 | 20 61 72 65 61 0d 20 20 |r to the| area. |
|000007d0| 20 20 20 20 20 20 6f 66 | 20 74 68 65 20 77 69 6e | of| the win|
|000007e0| 64 6f 77 20 74 68 61 74 | 20 69 73 20 76 69 73 69 |dow that| is visi|
|000007f0| 62 6c 65 2e 0d 20 20 20 | 20 62 29 20 20 49 66 20 |ble.. | b) If |
|00000800| 74 68 65 20 77 69 6e 64 | 6f 77 43 75 72 73 6f 72 |the wind|owCursor|
|00000810| 50 72 6f 63 20 69 73 20 | 6e 69 6c 20 61 6e 64 20 |Proc is |nil and |
|00000820| 74 68 65 20 6d 6f 75 73 | 65 20 70 6f 73 69 74 69 |the mous|e positi|
|00000830| 6f 6e 20 69 73 20 6f 75 | 74 73 69 64 65 20 74 68 |on is ou|tside th|
|00000840| 65 0d 20 20 20 20 20 20 | 20 20 73 74 72 75 63 74 |e. | struct|
|00000850| 75 72 65 20 72 65 67 69 | 6f 6e 20 6f 66 20 74 68 |ure regi|on of th|
|00000860| 65 20 77 69 6e 64 6f 77 | 2c 20 64 69 66 66 20 6f |e window|, diff o|
|00000870| 75 74 20 74 68 65 20 73 | 74 72 75 63 74 75 72 65 |ut the s|tructure|
|00000880| 20 72 65 67 69 6f 6e 20 | 66 72 6f 6d 0d 20 20 20 | region |from. |
|00000890| 20 20 20 20 20 67 43 75 | 72 73 6f 72 52 67 6e 20 | gCu|rsorRgn |
|000008a0| 61 6e 64 20 70 72 6f 63 | 65 65 64 20 74 6f 20 74 |and proc|eed to t|
|000008b0| 68 65 20 6e 65 78 74 20 | 76 69 73 69 62 6c 65 20 |he next |visible |
|000008c0| 77 69 6e 64 6f 77 20 69 | 6e 20 74 68 65 20 77 69 |window i|n the wi|
|000008d0| 6e 64 6f 77 20 6c 69 73 | 74 2e 0d 20 20 20 20 63 |ndow lis|t.. c|
|000008e0| 29 20 20 49 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |) If th|e window|
|000008f0| 43 75 72 73 6f 72 50 72 | 6f 63 20 69 73 20 6e 6f |CursorPr|oc is no|
|00000900| 74 20 6e 69 6c 2c 20 63 | 61 6c 6c 20 74 68 65 20 |t nil, c|all the |
|00000910| 70 72 6f 63 65 64 75 72 | 65 2e 20 20 4e 6f 74 65 |procedur|e. Note|
|00000920| 20 74 68 61 74 20 74 68 | 65 0d 20 20 20 20 20 20 | that th|e. |
|00000930| 20 20 70 72 6f 63 65 64 | 75 72 65 20 69 73 20 63 | proced|ure is c|
|00000940| 61 6c 6c 65 64 20 77 68 | 65 74 68 65 72 20 6f 72 |alled wh|ether or|
|00000950| 20 6e 6f 74 20 74 68 65 | 20 6d 6f 75 73 65 20 6c | not the| mouse l|
|00000960| 6f 63 61 74 69 6f 6e 20 | 69 73 20 6f 76 65 72 20 |ocation |is over |
|00000970| 74 68 65 20 77 69 6e 64 | 6f 77 2e 0d 20 20 20 20 |the wind|ow.. |
|00000980| 20 20 20 20 54 68 69 73 | 20 69 73 20 74 6f 20 61 | This| is to a|
|00000990| 6c 6c 6f 77 20 74 68 65 | 20 70 72 6f 63 65 64 75 |llow the| procedu|
|000009a0| 72 65 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |re to de|termine |
|000009b0| 69 66 20 69 74 20 73 68 | 6f 75 6c 64 20 62 65 20 |if it sh|ould be |
|000009c0| 74 68 65 20 6c 61 73 74 | 0d 20 20 20 20 20 20 20 |the last|. |
|000009d0| 20 77 69 6e 64 6f 77 20 | 63 68 65 63 6b 65 64 2e | window |checked.|
|000009e0| 0d 20 20 20 20 20 20 20 | 20 54 68 65 20 70 72 6f |. | The pro|
|000009f0| 63 d5 73 20 6a 6f 62 20 | 69 73 20 61 73 20 66 6f |c.s job |is as fo|
|00000a00| 6c 6c 6f 77 73 3a 0d 20 | 20 20 20 20 20 20 20 31 |llows:. | 1|
|00000a10| 29 20 20 49 66 20 74 68 | 65 20 63 75 72 73 6f 72 |) If th|e cursor|
|00000a20| 20 69 73 20 6f 76 65 72 | 20 61 20 70 6f 73 69 74 | is over| a posit|
|00000a30| 69 6f 6e 20 74 68 61 74 | 20 69 73 20 64 65 74 65 |ion that| is dete|
|00000a40| 72 6d 69 6e 65 64 20 62 | 79 20 74 68 65 20 77 69 |rmined b|y the wi|
|00000a50| 6e 64 6f 77 2c 20 74 68 | 65 6e 0d 20 20 20 20 20 |ndow, th|en. |
|00000a60| 20 20 20 20 20 20 20 74 | 68 65 20 70 72 6f 63 20 | t|he proc |
|00000a70| 72 65 6d 6f 76 65 73 20 | 6f 74 68 65 72 20 61 72 |removes |other ar|
|00000a80| 65 61 73 20 66 72 6f 6d | 20 67 43 75 72 73 6f 72 |eas from| gCursor|
|00000a90| 52 67 6e 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |Rgn. No|te that |
|00000aa0| 69 74 20 73 68 6f 75 6c | 64 20 6e 6f 74 0d 20 20 |it shoul|d not. |
|00000ab0| 20 20 20 20 20 20 20 20 | 20 20 73 69 6d 70 6c 79 | | simply|
|00000ac0| 20 73 65 74 20 74 68 65 | 20 61 72 65 61 20 74 6f | set the| area to|
|00000ad0| 20 77 68 61 74 20 69 74 | 20 22 74 68 69 6e 6b 73 | what it| "thinks|
|00000ae0| 22 20 69 73 20 74 68 65 | 20 63 6f 72 72 65 63 74 |" is the| correct|
|00000af0| 20 61 72 65 61 2e 20 20 | 54 68 69 73 20 77 69 6e | area. |This win|
|00000b00| 64 6f 77 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |dow. | |
|00000b10| 6d 61 79 20 6e 6f 74 20 | 62 65 20 74 68 65 20 66 |may not |be the f|
|00000b20| 72 6f 6e 74 2d 6d 6f 73 | 74 2e 20 20 4f 74 68 65 |ront-mos|t. Othe|
|00000b30| 72 20 77 69 6e 64 6f 77 | 73 20 77 69 6c 6c 20 68 |r window|s will h|
|00000b40| 61 76 65 20 61 6c 72 65 | 61 64 79 20 62 65 65 6e |ave alre|ady been|
|00000b50| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 73 75 62 |. | sub|
|00000b60| 74 72 61 63 74 65 64 20 | 66 72 6f 6d 20 67 43 75 |tracted |from gCu|
|00000b70| 72 73 6f 72 52 67 6e 2e | 20 20 54 68 65 20 72 65 |rsorRgn.| The re|
|00000b80| 73 75 6c 74 61 6e 74 20 | 67 43 75 72 73 6f 72 52 |sultant |gCursorR|
|00000b90| 67 6e 20 69 73 20 74 68 | 65 20 63 6f 72 72 65 63 |gn is th|e correc|
|00000ba0| 74 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 63 75 |t. | cu|
|00000bb0| 72 73 6f 72 20 61 72 65 | 61 2c 20 61 6e 64 20 73 |rsor are|a, and s|
|00000bc0| 68 6f 75 6c 64 20 62 65 | 20 70 61 73 73 65 64 20 |hould be| passed |
|00000bd0| 74 6f 20 57 61 69 74 4e | 65 78 74 45 76 65 6e 74 |to WaitN|extEvent|
|00000be0| 20 63 61 6c 6c 73 20 69 | 6e 20 74 68 65 0d 20 20 | calls i|n the. |
|00000bf0| 20 20 20 20 20 20 20 20 | 20 20 61 70 70 6c 69 63 | | applic|
|00000c00| 61 74 69 6f 6e 2e 20 20 | 41 6c 73 6f 2c 20 74 68 |ation. |Also, th|
|00000c10| 65 20 63 75 72 73 6f 72 | 20 73 68 6f 75 6c 64 20 |e cursor| should |
|00000c20| 62 65 20 73 65 74 20 74 | 6f 20 74 68 65 20 63 6f |be set t|o the co|
|00000c30| 72 72 65 63 74 20 63 75 | 72 73 6f 72 2c 20 6f 66 |rrect cu|rsor, of|
|00000c40| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6f 75 |. | cou|
|00000c50| 72 73 65 2e 20 20 59 6f | 75 20 73 68 6f 75 6c 64 |rse. Yo|u should|
|00000c60| 20 61 6c 73 6f 20 72 65 | 74 75 72 6e 20 74 72 75 | also re|turn tru|
|00000c70| 65 2c 20 61 73 20 74 68 | 65 20 63 75 72 73 6f 72 |e, as th|e cursor|
|00000c80| 20 68 61 73 20 62 65 65 | 6e 20 64 65 74 65 72 6d | has bee|n determ|
|00000c90| 69 6e 65 64 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |ined.. | |
|00000ca0| 20 20 54 68 65 20 72 75 | 6c 65 20 6f 66 20 74 68 | The ru|le of th|
|00000cb0| 75 6d 62 20 66 6f 72 20 | 77 68 61 74 20 79 6f 75 |umb for |what you|
|00000cc0| 20 73 68 6f 75 6c 64 20 | 64 6f 20 74 6f 20 74 68 | should |do to th|
|00000cd0| 65 20 67 43 75 72 73 6f | 72 52 67 6e 20 69 73 20 |e gCurso|rRgn is |
|00000ce0| 74 68 61 74 20 79 6f 75 | 0d 20 20 20 20 20 20 20 |that you|. |
|00000cf0| 20 20 20 20 20 73 68 6f | 75 6c 64 20 63 61 6c 63 | sho|uld calc|
|00000d00| 75 6c 61 74 65 20 74 68 | 65 20 63 75 72 73 6f 72 |ulate th|e cursor|
|00000d10| 20 72 65 67 69 6f 6e 20 | 61 73 20 69 66 20 74 68 | region |as if th|
|00000d20| 65 20 77 69 6e 64 6f 77 | 20 77 61 73 20 74 68 65 |e window| was the|
|00000d30| 20 74 6f 70 20 77 69 6e | 64 6f 77 2e 0d 20 20 20 | top win|dow.. |
|00000d40| 20 20 20 20 20 20 20 20 | 20 4f 6e 63 65 20 74 68 | | Once th|
|00000d50| 69 73 20 69 73 20 64 6f | 6e 65 2c 20 69 6e 74 65 |is is do|ne, inte|
|00000d60| 72 73 65 63 74 20 74 68 | 65 20 67 43 75 72 73 6f |rsect th|e gCurso|
|00000d70| 72 52 67 6e 20 77 69 74 | 68 20 74 68 69 73 20 72 |rRgn wit|h this r|
|00000d80| 65 67 69 6f 6e 2e 20 20 | 54 68 65 20 72 65 73 75 |egion. |The resu|
|00000d90| 6c 74 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 73 |lt. | s|
|00000da0| 68 6f 75 6c 64 20 62 65 | 20 73 74 6f 72 65 64 20 |hould be| stored |
|00000db0| 69 6e 20 67 43 75 72 73 | 6f 72 52 67 6e 2e 0d 20 |in gCurs|orRgn.. |
|00000dc0| 20 20 20 20 20 20 20 20 | 20 20 20 53 69 6e 63 65 | | Since|
|00000dd0| 20 79 6f 75 20 64 65 74 | 65 72 6d 69 6e 65 64 20 | you det|ermined |
|00000de0| 61 20 63 75 72 73 6f 72 | 20 61 6e 64 20 67 43 75 |a cursor| and gCu|
|00000df0| 72 73 6f 72 52 67 6e 20 | 69 6e 20 74 68 69 73 20 |rsorRgn |in this |
|00000e00| 63 61 73 65 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |case, yo|u should|
|00000e10| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 |. | ret|
|00000e20| 75 72 6e 20 74 72 75 65 | 2e 20 20 52 65 74 75 72 |urn true|. Retur|
|00000e30| 6e 69 6e 67 20 74 72 75 | 65 20 69 6e 64 69 63 61 |ning tru|e indica|
|00000e40| 74 65 73 20 74 6f 20 44 | 6f 57 69 6e 64 6f 77 43 |tes to D|oWindowC|
|00000e50| 75 72 73 6f 72 20 74 68 | 61 74 20 74 68 65 0d 20 |ursor th|at the. |
|00000e60| 20 20 20 20 20 20 20 20 | 20 20 20 63 75 72 73 6f | | curso|
|00000e70| 72 20 68 61 73 20 62 65 | 65 6e 20 64 65 74 65 72 |r has be|en deter|
|00000e80| 6d 69 6e 65 64 2c 20 61 | 6e 64 20 74 68 61 74 20 |mined, a|nd that |
|00000e90| 69 74 20 73 68 6f 75 6c | 64 20 73 74 6f 70 20 70 |it shoul|d stop p|
|00000ea0| 72 6f 63 65 73 73 69 6e | 67 20 77 69 6e 64 6f 77 |rocessin|g window|
|00000eb0| 73 2e 0d 20 20 20 20 20 | 20 20 20 32 29 20 20 49 |s.. | 2) I|
|00000ec0| 66 20 74 68 65 20 63 75 | 72 73 6f 72 20 69 73 20 |f the cu|rsor is |
|00000ed0| 6e 6f 74 20 6f 76 65 72 | 20 61 20 70 6f 73 69 74 |not over| a posit|
|00000ee0| 69 6f 6e 20 66 6f 72 20 | 74 68 69 73 20 77 69 6e |ion for |this win|
|00000ef0| 64 6f 77 2c 20 74 68 65 | 6e 20 79 6f 75 20 73 68 |dow, the|n you sh|
|00000f00| 6f 75 6c 64 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ould. | |
|00000f10| 20 72 65 74 75 72 6e 2e | 20 20 59 6f 75 20 77 69 | return.| You wi|
|00000f20| 6c 6c 20 65 69 74 68 65 | 72 20 70 61 73 73 20 62 |ll eithe|r pass b|
|00000f30| 61 63 6b 20 74 72 75 65 | 20 6f 72 20 66 61 6c 73 |ack true| or fals|
|00000f40| 65 2e 20 20 49 66 20 79 | 6f 75 20 64 6f 6e d5 74 |e. If y|ou don.t|
|00000f50| 20 77 69 73 68 0d 20 20 | 20 20 20 20 20 20 20 20 | wish. | |
|00000f60| 20 20 77 69 6e 64 6f 77 | 73 20 62 65 68 69 6e 64 | window|s behind|
|00000f70| 20 74 68 69 73 20 77 69 | 6e 64 6f 77 20 74 6f 20 | this wi|ndow to |
|00000f80| 68 61 76 65 20 61 20 73 | 68 6f 74 20 61 74 20 63 |have a s|hot at c|
|00000f90| 75 72 73 6f 72 20 64 65 | 74 65 72 6d 69 6e 61 74 |ursor de|terminat|
|00000fa0| 69 6f 6e 2c 20 74 68 65 | 6e 0d 20 20 20 20 20 20 |ion, the|n. |
|00000fb0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 74 72 75 | re|turn tru|
|00000fc0| 65 2e 20 20 54 68 69 73 | 20 73 74 61 74 65 73 20 |e. This| states |
|00000fd0| 74 68 61 74 20 74 68 65 | 20 63 75 72 73 6f 72 20 |that the| cursor |
|00000fe0| 69 73 20 22 64 65 74 65 | 72 6d 69 6e 65 64 22 2e |is "dete|rmined".|
|00000ff0| 20 20 49 74 20 69 73 2c | 20 69 6e 20 74 68 65 0d | It is,| in the.|
|00001000| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 65 6e 73 | | sens|
|00001010| 65 20 74 68 61 74 20 6e | 6f 20 66 75 72 74 68 65 |e that n|o furthe|
|00001020| 72 20 64 65 74 65 72 6d | 69 6e 61 74 69 6f 6e 20 |r determ|ination |
|00001030| 77 69 6c 6c 20 6f 63 63 | 75 72 2e 20 20 49 66 20 |will occ|ur. If |
|00001040| 79 6f 75 20 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |you retu|rn false|
|00001050| 2c 20 74 68 65 6e 0d 20 | 20 20 20 20 20 20 20 20 |, then. | |
|00001060| 20 20 20 6f 74 68 65 72 | 20 77 69 6e 64 6f 77 73 | other| windows|
|00001070| 20 67 65 74 20 61 20 73 | 68 6f 74 20 61 74 20 64 | get a s|hot at d|
|00001080| 65 74 65 72 6d 69 6e 69 | 6e 67 20 74 68 65 20 63 |etermini|ng the c|
|00001090| 75 72 73 6f 72 2e 20 20 | 49 66 20 74 68 65 72 65 |ursor. |If there|
|000010a0| 20 61 72 65 20 6e 6f 20 | 6f 74 68 65 72 0d 20 20 | are no |other. |
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 77 69 6e 64 6f 77 | | window|
|000010c0| 73 2c 20 74 68 65 6e 20 | 74 68 65 20 63 75 72 73 |s, then |the curs|
|000010d0| 6f 72 20 69 73 20 73 65 | 74 20 74 6f 20 61 6e 20 |or is se|t to an |
|000010e0| 61 72 72 6f 77 2c 20 61 | 6e 64 20 67 43 75 72 73 |arrow, a|nd gCurs|
|000010f0| 6f 72 52 67 6e 20 69 73 | 20 73 65 74 20 74 6f 20 |orRgn is| set to |
|00001100| 74 68 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |the. | |
|00001110| 61 72 65 61 20 74 68 61 | 74 20 69 73 20 6f 75 74 |area tha|t is out|
|00001120| 73 69 64 65 20 61 6c 6c | 20 77 69 6e 64 6f 77 73 |side all| windows|
|00001130| 20 66 6f 72 20 74 68 65 | 20 61 70 70 6c 69 63 61 | for the| applica|
|00001140| 74 69 6f 6e 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |tion.. | |
|00001150| 20 20 28 43 6f 6d 6d 6f | 6e 20 63 61 73 65 3a 29 | (Commo|n case:)|
|00001160| 20 20 49 66 20 79 6f 75 | 20 64 6f 6e d5 74 20 77 | If you| don.t w|
|00001170| 61 6e 74 20 77 69 6e 64 | 6f 77 73 20 62 65 68 69 |ant wind|ows behi|
|00001180| 6e 64 20 74 68 69 73 20 | 6f 6e 65 20 74 6f 20 64 |nd this |one to d|
|00001190| 65 74 65 72 6d 69 6e 65 | 0d 20 20 20 20 20 20 20 |etermine|. |
|000011a0| 20 20 20 20 20 74 68 65 | 20 63 75 72 73 6f 72 3a | the| cursor:|
|000011b0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 61 29 20 |. | a) |
|000011c0| 20 53 65 74 20 74 68 65 | 20 63 75 72 73 6f 72 20 | Set the| cursor |
|000011d0| 74 6f 20 61 6e 20 61 72 | 72 6f 77 2e 20 20 53 69 |to an ar|row. Si|
|000011e0| 6e 63 65 20 79 6f 75 20 | 61 72 65 20 6f 75 74 73 |nce you |are outs|
|000011f0| 69 64 65 20 74 68 69 73 | 20 77 69 6e 64 6f 77 2c |ide this| window,|
|00001200| 20 74 68 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 | the. | |
|00001210| 20 20 20 20 20 63 75 72 | 73 6f 72 20 73 68 6f 75 | cur|sor shou|
|00001220| 6c 64 20 62 65 20 61 6e | 20 61 72 72 6f 77 2e 20 |ld be an| arrow. |
|00001230| 20 54 68 65 20 63 75 72 | 73 6f 72 20 6d 61 79 20 | The cur|sor may |
|00001240| 62 65 20 6f 76 65 72 20 | 74 68 65 20 64 65 73 6b |be over |the desk|
|00001250| 74 6f 70 20 6f 72 0d 20 | 20 20 20 20 20 20 20 20 |top or. | |
|00001260| 20 20 20 20 20 20 20 6d | 65 6e 75 62 61 72 2c 20 | m|enubar, |
|00001270| 6f 72 20 73 6f 6d 65 20 | 6f 74 68 65 72 20 77 69 |or some |other wi|
|00001280| 6e 64 6f 77 20 74 68 61 | 74 20 69 73 6e d5 74 20 |ndow tha|t isn.t |
|00001290| 74 68 65 20 74 6f 70 2d | 6d 6f 73 74 20 77 69 6e |the top-|most win|
|000012a0| 64 6f 77 2e 20 20 41 6c | 6c 20 6f 66 0d 20 20 20 |dow. Al|l of. |
|000012b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 65 | | the|
|000012c0| 73 65 20 63 61 73 65 73 | 20 73 68 6f 75 6c 64 20 |se cases| should |
|000012d0| 68 61 76 65 20 61 6e 20 | 61 72 72 6f 77 20 63 75 |have an |arrow cu|
|000012e0| 72 73 6f 72 2e 20 20 41 | 6c 73 6f 2c 20 79 6f 75 |rsor. A|lso, you|
|000012f0| 20 6e 65 65 64 20 74 6f | 20 64 69 66 66 20 6f 75 | need to| diff ou|
|00001300| 74 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t. | |
|00001310| 20 20 74 68 65 20 77 69 | 6e 64 6f 77 d5 73 20 73 | the wi|ndow.s s|
|00001320| 74 72 75 63 74 75 72 65 | 20 72 65 67 69 6f 6e 20 |tructure| region |
|00001330| 66 72 6f 6d 20 67 43 75 | 72 73 6f 72 52 67 6e 2e |from gCu|rsorRgn.|
|00001340| 20 20 42 79 20 64 69 66 | 66 69 6e 67 20 69 74 20 | By dif|fing it |
|00001350| 6f 75 74 2c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |out,. | |
|00001360| 20 20 20 20 20 79 6f 75 | 20 77 69 6c 6c 20 67 65 | you| will ge|
|00001370| 74 20 6d 6f 75 73 65 2d | 6d 6f 76 65 64 20 65 76 |t mouse-|moved ev|
|00001380| 65 6e 74 73 20 77 68 65 | 6e 20 74 68 65 20 63 75 |ents whe|n the cu|
|00001390| 72 73 6f 72 20 69 73 20 | 6d 6f 76 65 64 20 62 61 |rsor is |moved ba|
|000013a0| 63 6b 20 6f 76 65 72 0d | 20 20 20 20 20 20 20 20 |ck over.| |
|000013b0| 20 20 20 20 20 20 20 20 | 74 68 69 73 20 77 69 6e | |this win|
|000013c0| 64 6f 77 2e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |dow.. | |
|000013d0| 20 62 29 20 20 52 65 74 | 75 72 6e 20 74 72 75 65 | b) Ret|urn true|
|000013e0| 2e 20 20 54 68 69 73 20 | 74 65 6c 6c 73 20 44 6f |. This |tells Do|
|000013f0| 57 69 6e 64 6f 77 43 75 | 72 73 6f 72 20 74 68 61 |WindowCu|rsor tha|
|00001400| 74 20 74 68 65 20 63 75 | 72 73 6f 72 20 68 61 73 |t the cu|rsor has|
|00001410| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001420| 20 62 65 65 6e 20 64 65 | 74 65 72 6d 69 6e 65 64 | been de|termined|
|00001430| 2e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 28 55 |.. | (U|
|00001440| 6e 63 6f 6d 6d 6f 6e 20 | 63 61 73 65 3a 29 20 20 |ncommon |case:) |
|00001450| 49 66 20 79 6f 75 20 77 | 61 6e 74 20 77 69 6e 64 |If you w|ant wind|
|00001460| 6f 77 73 20 62 65 68 69 | 6e 64 20 74 68 69 73 20 |ows behi|nd this |
|00001470| 6f 6e 65 20 74 6f 20 70 | 6f 73 73 69 62 6c 79 0d |one to p|ossibly.|
|00001480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001490| 64 65 74 65 72 6d 69 6e | 65 20 74 68 65 20 63 75 |determin|e the cu|
|000014a0| 72 73 6f 72 3a 20 20 52 | 65 74 75 72 6e 20 66 61 |rsor: R|eturn fa|
|000014b0| 6c 73 65 2e 20 20 54 68 | 61 74 d5 73 20 69 74 2e |lse. Th|at.s it.|
|000014c0| 20 20 44 54 53 2e 66 72 | 61 6d 65 77 6f 72 6b 20 | DTS.fr|amework |
|000014d0| 77 69 6c 6c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |will. | |
|000014e0| 20 20 20 20 20 61 75 74 | 6f 6d 61 74 69 63 61 6c | aut|omatical|
|000014f0| 6c 79 20 72 65 6d 6f 76 | 65 20 74 68 65 20 73 74 |ly remov|e the st|
|00001500| 72 75 63 74 75 72 65 20 | 72 65 67 69 6f 6e 20 66 |ructure |region f|
|00001510| 6f 72 20 74 68 69 73 20 | 77 69 6e 64 6f 77 20 66 |or this |window f|
|00001520| 72 6f 6d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |rom. | |
|00001530| 20 20 20 20 67 43 75 72 | 73 6f 72 52 67 6e 20 69 | gCur|sorRgn i|
|00001540| 66 20 79 6f 75 20 72 65 | 74 75 72 6e 20 66 61 6c |f you re|turn fal|
|00001550| 73 65 2e 20 20 49 66 20 | 79 6f 75 20 72 65 74 75 |se. If |you retu|
|00001560| 72 6e 20 66 61 6c 73 65 | 2c 20 44 54 53 2e 66 72 |rn false|, DTS.fr|
|00001570| 61 6d 65 77 6f 72 6b 0d | 20 20 20 20 20 20 20 20 |amework.| |
|00001580| 20 20 20 20 20 20 20 20 | 70 72 6f 63 65 65 64 73 | |proceeds|
|00001590| 20 74 6f 20 74 68 65 20 | 6e 65 78 74 20 77 69 6e | to the |next win|
|000015a0| 64 6f 77 2c 20 69 66 20 | 74 68 65 72 65 20 69 73 |dow, if |there is|
|000015b0| 20 6f 6e 65 2e 20 20 49 | 66 20 74 68 65 72 65 20 | one. I|f there |
|000015c0| 61 72 65 20 6e 6f 20 6d | 6f 72 65 0d 20 20 20 20 |are no m|ore. |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 77 69 6e 64 | | wind|
|000015e0| 6f 77 73 20 62 65 68 69 | 6e 64 20 74 68 69 73 20 |ows behi|nd this |
|000015f0| 6f 6e 65 2c 20 74 68 65 | 6e 20 44 54 53 2e 66 72 |one, the|n DTS.fr|
|00001600| 61 6d 65 77 6f 72 6b 20 | 73 65 74 73 20 74 68 65 |amework |sets the|
|00001610| 20 63 75 72 73 6f 72 20 | 74 6f 20 61 6e 0d 20 20 | cursor |to an. |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 72 | | ar|
|00001630| 72 6f 77 2c 20 61 6e 64 | 20 74 68 65 20 72 65 73 |row, and| the res|
|00001640| 75 6c 74 61 6e 74 20 67 | 43 75 72 73 6f 72 52 67 |ultant g|CursorRg|
|00001650| 6e 20 77 69 6c 6c 20 68 | 61 76 65 20 61 6c 6c 20 |n will h|ave all |
|00001660| 6f 66 20 74 68 65 20 73 | 74 72 75 63 74 75 72 65 |of the s|tructure|
|00001670| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001680| 20 72 65 67 69 6f 6e 73 | 20 66 6f 72 20 74 68 65 | regions| for the|
|00001690| 20 77 69 6e 64 6f 77 73 | 20 72 65 6d 6f 76 65 64 | windows| removed|
|000016a0| 20 66 72 6f 6d 20 69 74 | 2e 20 0d 0d 0d 00 16 00 | from it|. ......|
|000016b0| 01 00 00 00 00 00 0b 00 | 09 00 04 00 00 00 09 00 |........|........|
|000016c0| 00 00 00 00 00 | |..... | |
+--------+-------------------------+-------------------------+--------+--------+